function [y] = weighted_smoothing_Window(x)
%*---------------------- weighted_smoothing_Window ------------------------%
%
% [y] = weighted_smoothing_Window(x)
%
% this function is used to smooth the input vector (x), but with weighting
% it is not practical incase of low memory as you need to store all values 
% we may need to use another more practical equation
%-------------------------------------------------------------------------%
[L W] = size(x);
y=zeros(L,1);
for jj=1:W
    y=y + x(:,jj)*jj;
end

y = y/sum(1:W);
%-------------------------------------------------------------------------%
